/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Models;

import java.util.Date;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;

/**
 *
 * @author Cham to tet
 */
@ManagedBean(name = "paymentBean")
@RequestScoped
public class Payment {

    /** Creates a new instance of Payment */
    
    int id, companyID, driversID, advertiseID;
    int amount;
    String memberType, paymentType, extensionType;
    float money;
    Date expirationDate;
    boolean status;
    String nameC, namD, nameA;

    public Date getExpirationDate() {
        return expirationDate;
    }

    public void setExpirationDate(Date expirationDate) {
        this.expirationDate = expirationDate;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getNamD() {
        return namD;
    }

    public void setNamD(String namD) {
        this.namD = namD;
    }

    public String getNameA() {
        return nameA;
    }

    public void setNameA(String nameA) {
        this.nameA = nameA;
    }

    public String getNameC() {
        return nameC;
    }

    public void setNameC(String nameC) {
        this.nameC = nameC;
    }

    public boolean isStatus() {
        return status;
    }

    public void setStatus(boolean status) {
        this.status = status;
    }
    
    public void edit(Payment pay){
        this.id=pay.id;
        this.nameA = pay.nameA;
        this.namD = pay.namD;
        this.nameC = pay.nameC;
        this.money=pay.money;
        this.expirationDate=pay.expirationDate;
        this.status=pay.status;
    }
    
    public int getAmount() {
        return amount;
    }

    public void setAmount(int amount) {
        this.amount = amount;
    }

    public String getExtensionType() {
        return extensionType;
    }

    public void setExtensionType(String extensionType) {
        this.extensionType = extensionType;
    }

    public String getMemberType() {
        return memberType;
    }

    public void setMemberType(String memberType) {
        this.memberType = memberType;
    }

    public String getPaymentType() {
        return paymentType;
    }

    public void setPaymentType(String paymentType) {
        this.paymentType = paymentType;
    }
    
    
    public int getAdvertiseID() {
        return advertiseID;
    }

    public void setAdvertiseID(int advertiseID) {
        this.advertiseID = advertiseID;
    }

    public int getCompanyID() {
        return companyID;
    }

    public void setCompanyID(int companyID) {
        this.companyID = companyID;
    }

    public int getDriversID() {
        return driversID;
    }

    public void setDriversID(int driversID) {
        this.driversID = driversID;
    }

    public float getMoney() {
        return money;
    }

    public void setMoney(float money) {
        this.money = money;
    }

    public Payment(int companyID, int driversID, int advertiseID, int amount, String memberType, String paymentType, String extensionType, float money) {
        this.companyID = companyID;
        this.driversID = driversID;
        this.advertiseID = advertiseID;
        this.amount = amount;
        this.memberType = memberType;
        this.paymentType = paymentType;
        this.extensionType = extensionType;
        this.money = money;
    }
    
    
    public Payment() {
    }
}
